package org.zfes.snowier.cloud.zbss.pmp.router.service.dev;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zfes.snowier.auth.shiro.util.SecurityUtil;
import org.zfes.snowier.cloud.zbss.pmp.dto.PmpProjectMemberDto;
import org.zfes.snowier.cloud.zbss.pmp.service.IPmpProjectService;
import org.zfes.snowier.web.controller.BaseController;
import java.util.List;

@Api(tags = "开发人员项目模块")
@Controller("org.zfes.snowier.cloud.zbss.pmp.router.service.dev.PmpProjectDevController")
@RequestMapping("/pmp/service/dev/pmpProject")
public class PmpProjectController extends BaseController {

    @Autowired
    private IPmpProjectService pmpProjectService;

    @ApiOperation(value = "开发人员项目列表接口测通")
    @RequestMapping(value="/loadJoinPmpProjectDataSet", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody  Object loadJoinPmpProjectDataSet(){
        List<PmpProjectMemberDto> projList=  pmpProjectService.loadUserPmpProjectList(SecurityUtil.getUserId().get());
        return ajaxQuery("projList", projList);
    }

}
